import Vue from 'vue'
import Router from 'vue-router'
import Home from './components/home/home'
import GoodsDetail from './components/goods/goods-detail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/goodsDetail/:foodId',
      name: 'goodsDetail',
      component: GoodsDetail
    }
  ]
})
